Optimal. Leaf size=202 \[ -\frac {\left (a B+\sqrt {-a} A \sqrt {c}\right ) (d+e x)^{2+m} \, _2F_1\left (1,2+m;3+m;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{2 a \sqrt {c} \left (\sqrt {c} d-\sqrt {-a} e\right ) (2+m)}-\frac {\left (A+\frac {\sqrt {-a} B}{\sqrt {c}}\right ) (d+e x)^{2+m} \, _2F_1\left (1,2+m;3+m;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{2 \sqrt {-a} \left (\sqrt {c} d+\sqrt {-a} e\right ) (2+m)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 202, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 2, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.083, Rules used = {845, 70}
\begin {gather*} -\frac {\left (\sqrt {-a} A \sqrt {c}+a B\right ) (d+e x)^{m+2} \, _2F_1\left (1,m+2;m+3;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{2 a \sqrt {c} (m+2) \left (\sqrt {c} d-\sqrt {-a} e\right )}-\frac {\left (\frac {\sqrt {-a} B}{\sqrt {c}}+A\right ) (d+e x)^{m+2} \, _2F_1\left (1,m+2;m+3;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{2 \sqrt {-a} (m+2) \left (\sqrt {-a} e+\sqrt {c} d\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 70
Rule 845
Rubi steps
\begin {align*} \int \frac {(A+B x) (d+e x)^{1+m}}{a+c x^2} \, dx &=\int \left (\frac {\left (\sqrt {-a} A-\frac {a B}{\sqrt {c}}\right ) (d+e x)^{1+m}}{2 a \left (\sqrt {-a}-\sqrt {c} x\right )}+\frac {\left (\sqrt {-a} A+\frac {a B}{\sqrt {c}}\right ) (d+e x)^{1+m}}{2 a \left (\sqrt {-a}+\sqrt {c} x\right )}\right ) \, dx\\ &=\frac {1}{2} \left (\frac {a A}{(-a)^{3/2}}-\frac {B}{\sqrt {c}}\right ) \int \frac {(d+e x)^{1+m}}{\sqrt {-a}-\sqrt {c} x} \, dx+\frac {1}{2} \left (\frac {a A}{(-a)^{3/2}}+\frac {B}{\sqrt {c}}\right ) \int \frac {(d+e x)^{1+m}}{\sqrt {-a}+\sqrt {c} x} \, dx\\ &=-\frac {\left (\frac {a A}{(-a)^{3/2}}+\frac {B}{\sqrt {c}}\right ) (d+e x)^{2+m} \, _2F_1\left (1,2+m;3+m;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{2 \left (\sqrt {c} d-\sqrt {-a} e\right ) (2+m)}+\frac {\left (\frac {a A}{(-a)^{3/2}}-\frac {B}{\sqrt {c}}\right ) (d+e x)^{2+m} \, _2F_1\left (1,2+m;3+m;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{2 \left (\sqrt {c} d+\sqrt {-a} e\right ) (2+m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.19, size = 182, normalized size = 0.90 \begin {gather*} \frac {(d+e x)^{2+m} \left (\frac {\left (a B+\sqrt {-a} A \sqrt {c}\right ) \, _2F_1\left (1,2+m;3+m;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d-\sqrt {-a} e}\right )}{-\sqrt {c} d+\sqrt {-a} e}+\frac {\left (-a B+\sqrt {-a} A \sqrt {c}\right ) \, _2F_1\left (1,2+m;3+m;\frac {\sqrt {c} (d+e x)}{\sqrt {c} d+\sqrt {-a} e}\right )}{\sqrt {c} d+\sqrt {-a} e}\right )}{2 a \sqrt {c} (2+m)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.23, size = 0, normalized size = 0.00 \[\int \frac {\left (B x +A \right ) \left (e x +d \right )^{1+m}}{c \,x^{2}+a}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\left (A+B\,x\right )\,{\left (d+e\,x\right )}^{m+1}}{c\,x^2+a} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________